import React, { PropTypes, Component } from 'react';

/**
 * Loading
 * 
 * @class Loading
 * @extends {Component} 
 */

class Loading extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        const { isFetching} = this.props;
        console.log(2222, isFetching);
        return (
            <div id="load_popover" style={{ display: (isFetching ? 'block' : '') }}>
                <div className="loading">
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </div>
        );
    }
    shouldComponentUpdate(np) {
        return false;
        // return this.props.tab !== np.tab; //tab和之前的不一致，组件才需要更新，否则不更新，提升性能
    }
}

export default Loading